/**
 * PackageDir: info.javafans.cdn.dao
 * FileName: GroupTypeDao.java
 * CreateDate: 2011-3-6 上午08:39:50
 * Copyright: Copyright (c) 2011 <br />
 * Company: fossd <br />
 * @author Yintao Xue
 * @version 1.0 2011-3-6
 */
package info.javafans.cdn.dao;

import info.javafans.cdn.database.DbHelper;
import info.javafans.cdn.domain.GroupType;

import org.apache.log4j.Logger;

/**
 * Project: CollegeDatingNetwork <br />
 * ClassName: GroupTypeDao <br />
 * Description: <br />
 */
public class GroupTypeDao {
	public static Logger logger = Logger.getLogger(GroupTypeDao.class);

	/**
	 * 按id查询GroupType selectGroupTypeById
	 * 
	 * @param id
	 * @return
	 */
	public static GroupType selectGroupTypeById(int id) {
		String sql = "select * from group_type where id = ?";
		GroupType groupType = null;

		groupType = DbHelper.queryBean(GroupType.class, sql, id);

		return groupType;
	}
}
